<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>发布场次</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.min.css">
<link href="__PUBLIC__/css/font-awesome.css" rel="stylesheet">
<script src="__PUBLIC__/js/jquery.min.js"></script>
<script src="__PUBLIC__/js/jquery.hotkeys.js"></script>
<script src="__PUBLIC__/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/prettify.js"></script>
<script src="__PUBLIC__/js/bootstrap-wysiwyg.js"></script>
<link href="__PUBLIC__/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
<style type="text/css">
.autoflow-x {
	overflow-x: auto;
}
.autowidth {
	max-width: 500px;
}
</style>
</head>
<body>
<!-- 发布场次 -->
<div class="Match-m">
	<table class="table" id="selectMatch">
		<tr style="background-color: #F2F3F7;">
			<th>ID</th>
			<th>赛事名称</th>
			<th>竞赛日期</th>
			<th>报名截止时间</th>
			<th>操作</th>
		</tr>
		<volist name="all_gamelist" id="vo">
			<form action="" method="get">
				<tr>
					<td>{$vo.all_id}</td>
					<td>{$vo.all_name}</td>
					<td>{$vo.all_start}</td>
					<td>{$vo.all_e_time}</td>
					<td>
						<input type="hidden" name="st" value="fir">
						<input type="submit" class="btn btn-default" value="选择" />
						<input type="hidden" name="aid" value="{$vo.all_id}">
					</td>
				</tr>
			</form>
		</volist>
	</table>
	<div class="center-block autowidth" id="addchangci">
	<form class="center-block autowidth" action="" method="post">
		<div class="form-group">
			<label>场次名称</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入场次"  name="gamename">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>比赛时间</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input readonly class="span2 form-control form_datetime" size="16" type="text" name="btime">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>颁奖简介</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入" maxlength="35" name="info">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>比赛最小年龄(只用输入数字)</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入" maxlength="3" name="bage" onkeyup="onlyNumber(this)">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>比赛最小年龄(只用输入数字)</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入" maxlength="3" name="eage" onkeyup="onlyNumber(this)">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>参报组别</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<select name="gameType">
						<option value="职业组">职业组</option>
						<option value="专业组">专业组</option>
						<option value="业余组">业余组</option>
						<option value="女子六人组">女子六人组</option>
						<option value="团体舞">团体舞</option>
					</select>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>本场最大人数</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入人数" maxlength="4" onkeyup="onlyNumber(this)" name="num">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>报名费</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入" maxlength="5" onkeyup="onlyNumber(this)" name="money">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>参赛性别</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<select name="sex">
						<option value="0">不限</option>
						<option value="1">男</option>
						<option value="2">女</option>
					</select>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>比赛简单代号</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入比赛项目"  name="short">
				</div>
			</div>
		</div>
		<div style="width: 70%;overflow: hidden;" class="center-block">
			<input type="submit" class="btn btn-info center-block" value="提交">
		</div>
	</form>
	<form class="center-block autowidth" action="__URL__/uploadMatch" method="post" enctype="multipart/form-data" style="margin-top: 30px;">
		<div class="form-group">
			<label>批量导入excel(选择此项，则不用填写上面的表格)</label>
			<div class="input-group center-block clearfix">
				<input class="form-control" type="file" style="height: 35px !important;vertical-align: middle;" name="excel">
			</div>
			<div class="input-group center-block clearfix">
				<input  type="submit" class="btn btn-info center-block" style="margin-top: 30px;">
			</div>
		</div>
	</form>
	</div>
</div>
<script type="text/javascript">
	var sltM = {$stu};
	$(function(){
		if (sltM == -1) {
			$("#selectMatch").show();
			$("#addchangci").hide();
		}
		if (sltM == 1) {
			$("#selectMatch").hide();
			$("#addchangci").show();
		}
	})
</script>
<script type="text/javascript">
	function changeMatch(obj){
		obj.parent().parent().find("td.changeabled *").css("display","none");
		obj.parent().parent().find("td.changeabled input").show();
	}
	function onlyNumber(obj){
		obj.value = obj.value.replace(/\D/g,"");
	}
</script>
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
	<script type="text/javascript" src="__PUBLIC__/js/bootstrap-datetimepicker.fr.js" charset="UTF-8"></script>
<script type="text/javascript">
		$('.span2').datetimepicker({
            format:'yyyy-mm-dd hh:ii:ss',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            forceParse: 0,
            showMeridian: 1
        });
        $('.span1').datetimepicker({
            format:'yyyy-mm-dd',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            forceParse: 0,
            showMeridian: 1
        });
</script>
</body>
</html>